package com.tnsw.coreutils;

public class StaticConfig {
	public static boolean DEBUGMODE = false;
	public static int ASYNC_THREAD_COUNT = 2;
	public static String LOG_URL = "http://172.16.50.192/PredictWeb/NetworkLog.aspx";
	//public static String LOG_URL = "http://202.57.128.248/PredictWeb/NetworkLog.aspx";

	public static boolean isSimilarArray(String str, String[] ss) {
		if (ss == null) {
			return(false);
		}
		
		if (ss.length == 0) {
			return(false);
		}
		
		boolean b = false;
		
		int i;
		for (i = 0; i < ss.length; i++) {
			if (str.contains(ss[i])) {
				return(true);
			}
		}
		
		return(b);
	}
	
	public static boolean isInArray(String str, String[] ss) {
		if (ss == null) {
			return(false);
		}
		
		if (ss.length == 0) {
			return(false);
		}
		
		boolean b = false;
		
		int i;
		for (i = 0; i < ss.length; i++) {
			if (ss[i].equals(str)) {
				return(true);
			}
		}
		
		return(b);
	}
}
